PROJECT = "PROJECT"
VERSION = "1.0.0"
sys = require("sys")
-- 配置uart引脚
uart.setup(1, 115200)
uart.on(1, "receive", function()
    local val = uart.read(1)
    print("1口：", val, val:toHex())
	uart.write(1, string.char(0x99, 0x10, 0x88))
end)

sys.taskInit(function()
	sys.wait(2000)
	print("dddd")
	
	while 1 do
		print("dddd")
		sys.wait(2000)
	end
end)
sys.run()